<%@ include file="commons/head.jsp"%>
<%@ page contentType="text/html; charset=utf-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>后台信息管理工作平台</title>
		<link rel="stylesheet" type="text/css" href="${base}/css/style.css" />
		<script type="text/javascript" src="jquery.js"></script>
		<script type="text/javascript" src="${base}/js/js.js"></script>
		<script type="text/javascript">
		
//处理 登录超时 时，在子框架中显示登录页的问题
if(window.frameElement != null)
	window.top.location.href= "${base}/login/page";
	
<!--
//登录页，聚焦输入框
$(function(){
	$('#user').focus();

});

//键盘交互
$(document).keypress(function(event) {
	if(event.keyCode == 13)
		$("#login").submit();
});
//alert("${msg}");
<s:if test="msg!=null">

	alert("${msg }");
</s:if>
//-->
</script>
	</head>
	<body>
		<div 
			style="left: 0px; width: 100%; height: 130px; z-index: 50; position: absolute;display: none;">
			<span
				style="margin-top: 90px; padding-top: 15px; padding-bottom: 15px; width: 100%; font: bolder; font-size: xx-large; color: yellow;">学生信息管理系统</span>
			<hr size="4" style="width: 100%;" />
		</div>
		<div id="wrap">
			<div id="top"></div>

			<form id="login" name="login" action="login/doLogin" method="post">
				<div id="lgcenter">
					<div id="center_left"></div>
					<div id="center_middle">

						<div class="user">
							<label for="user">
								用户名：
								<input type="text" name="username" id="user" value="" />



							</label>
						</div>
						<span class="blank5"></span>
						<div class="user">
							<label for="pwd">
								密&nbsp;&nbsp;码：
								<input type="password" name="password" id="pwd" value="" />

							</label>
						</div>
						<span class="blank5"></span>
						<div>
							<label for="role" style="float: left">
								角&nbsp;&nbsp;色：&nbsp;
								<select name="role" id="role">
									<option value="student">
										学生
									</option>
									<option value="teacher">
										教师
									</option>
									<option value="admin">
										管理员
									</option>
								</select>
							</label>
						</div>
						<span class="blank3"></span>
						<!--						<div class="chknumber">-->
						<!--							<label for="chknumber">-->
						<!--								验证码：-->
						<!--								<input name="chknumber" type="text" id="chknumber" maxlength="4"-->
						<!--									class="chknumber_input" />-->
						<!--							</label>-->
						<!--							<img src="images/checkcode.png" id="safecode" />-->
						<!--						</div>-->
						<!-- 验证失败显示时，显示失败信息 -->
						<s:if test="#parameters.size>0">
							<s:property
								value="#session['ACEGI_SECURITY_LAST_EXCEPTION'].message" />
						</s:if>
					</div>
					<div id="center_middle_right"></div>
					<div id="center_submit">
						<div>
							<img src="images/dl.gif" width="57" height="20"
								onclick="form_submit()" />
						</div>
						<span class="blank15"></span>
						<div>
							<img src="images/cz.gif" width="57" height="20"
								onclick="form_reset()" />
						</div>
					</div>
					<div id="center_right"></div>
				</div>

			</form>
			<div id="footer"></div>
		</div>
	</body>
</html>
